import java.util.*;
public class List {

	static ArrayList names = new ArrayList();
	public static void main(String[] args){
	names.add("bunny");
	names.add("Duck") ;
	names.add("Bear") ;
	names.add("Buffalo") ;
	names.add("Horse") ;
	names.add("Butterfly") ;
	names.add("Pony") ;
	names.add("Rabbit") ;
	names.add("Deer") ;
	Scanner input=new Scanner(System.in);
	System.out.println("What Animal would you like to check for?");
	String name=input.next();
	run(name);
}
	static void run(int list, String name){
		Scanner input=new Scanner(System.in);
		boolean=true;
		for(int i=0;i<names.size();i++){
		if(name.equals(names.get(i))){
			System.out.println("Your Animal is on the list");
			break;
			}
		}
	}                                                                                                                                                                                
		
	}
	
}
